import random

def ranstr(num):
    '''随机返回num个数的字符串'''
    # 猜猜变量名为啥叫 H
    H = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'

    salt = ''
    for i in range(num):
        salt += random.choice(H)

    return salt

def email(): 
    '''随机一个邮箱'''
    E = ['@linshiyouxiang.net','@meantinc.com',
    '@liaohigh.com','@classesmail.com',
    '@classesmail.com','@powerencry.com',
    '@groupbuff.com','@groupbuff.com',
    '@unicodeworld.com','@unicodeworld.com',
    '@allemojikeyboard.com','@temporary-mail.net']
    houzhui = random.choice(E)
    youxiang = ranstr(8)+houzhui
    return youxiang


    

if  __name__ == "__main__":
    salt = ranstr(8)
    print(salt)
    print(email())